#ifndef __APP_LIB_SYSTEM_V_SEM_H__
#define __APP_LIB_SYSTEM_V_SEM_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "SystemV/AppLibSystemV_Base.hpp"

ULONG AppLibSystemV_SemCreate(IN CHAR *pcFilePath, IN SINT32 nsems, INOUT SINT32 *piSemId);
ULONG AppLibSystemV_SemDestory(INOUT SINT32 *piSemId);
ULONG AppLibSystemV_SemSetVal(IN SINT32 iSemId, IN SINT32 iSemNum, IN SINT32 Val);
ULONG AppLibSystemV_SemP(IN SINT32 iSemId, IN SINT32 iSemNum);
ULONG AppLibSystemV_SemP_Wait(IN SINT32 iSemId, IN SINT32 iSemNum);
ULONG AppLibSystemV_SemV(IN SINT32 iSemId, IN SINT32 iSemNum);
ULONG AppLibSystemV_SemV_Wait(IN SINT32 iSemId, IN SINT32 iSemNum);

#ifdef __cplusplus
}
#endif

#endif

